﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;

namespace CodeDomHelper.CodeDom
{

    [Serializable()]
    public class CCode : CDoc
    {

        internal override bool Unique { get { return false; } }

        public CCode()
            : base("code")
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CCode"/> class.
        /// <code>
        /// </code>
        /// </summary>
        /// <param name="comment">The comment.</param>
        public CCode(CDoc comment)
            : base("code", comment)
        {

        }

        internal virtual string Serialize
        {
            get
            {
                StringBuilder s = new StringBuilder();
                s.AppendLine(BaliseStart);

                s.AppendLine(Value);                

                s.AppendLine(BaliseEnd);

                return s.ToString();
            }
        }

    }


}
